

const app = getApp()

Page({
  data: {

    canIUse: wx.canIUse('button.open-type.getUserInfo')
  },
  onLoad: function () {
    
  },
  //用户授权登录
  bindGetUserInfo: function (e) {
    console.log(JSON.stringify(e) +"bindGetUserInfo");
    if (e.detail.userInfo) {
      app.globalData.wxUserInfo = e.detail.userInfo;

    app.globalData.auth = true;
      console.log(app.globalData.auth);


      wx.navigateBack({
        delta: 1
      })
    }
  }
})